package main

import (
	"github.com/spf13/cobra"
	"go-iot-gateway/internal/serial_cli"
)

func serialCliCmd() *cobra.Command {
	cmd := &cobra.Command{Use: "serial",
		Short: "串口工具",
		Long:  `串口工具`}
	cmd.AddCommand(
		serial_cli.VersionCmd(),
		serial_cli.PortsCmd(),
		serial_cli.SendCmd(),
		serial_cli.ConfigCmd(),
	)
	return cmd
}
